class GiftEntity {
	int id;
	int classifyId;
	int commonlyUsed;
	String name;
	double dividedInto;
	int gold;
	String icon;
	String createdAt;
	String updatedAt;
	String classifyName;

	GiftEntity(
			{this.id,
				this.classifyId,
				this.commonlyUsed,
				this.name,
				this.dividedInto,
				this.gold,
				this.icon,
				this.createdAt,
				this.updatedAt,
				this.classifyName});

	GiftEntity.fromJson(Map<String, dynamic> json) {
		id = json['id'];
		classifyId = json['classify_id'];
		commonlyUsed = json['commonly_used'];
		name = json['name'];
		dividedInto = json['divided_into'];
		gold = json['gold'];
		icon = json['icon'];
		createdAt = json['created_at'];
		updatedAt = json['updated_at'];
		classifyName = json['classifyName'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['id'] = this.id;
		data['classify_id'] = this.classifyId;
		data['commonly_used'] = this.commonlyUsed;
		data['name'] = this.name;
		data['divided_into'] = this.dividedInto;
		data['gold'] = this.gold;
		data['icon'] = this.icon;
		data['created_at'] = this.createdAt;
		data['updated_at'] = this.updatedAt;
		data['classifyName'] = this.classifyName;
		return data;
	}
}